import Service from "@/utils/request-login";

class UserService extends Service{
    //登录 根据code获取token
    login(code:string){
        return this.get({
            url:'/api/ucenter/webChat/callback',
            data:{
                code
            }
        })
    }
    //获取用户信息
    getUserInfo(){
        return this.get({
            url:'/api/ucenter/member/auth/getLoginInfo'
        })
    }
}
export default new UserService()